package com.codingman.springdemo2;

import java.util.List;
import java.util.Map;

public class Params {
	private String name;
	private List<String> countries;
	private Map<String, String> sex;
	
	public Params() {
		
	}
	
	public Params(String name, List<String> countries, Map<String, String> sex) {
		this.name = name;
		this.countries = countries;
		this.sex = sex;
	}
	
	public void show() {
		System.out.println("name : " + name);
		System.out.println("list : ");
		for(String country : countries) {
			System.out.println(country);
		}
		System.out.println("map : ");
		for(Map.Entry<String, String> entry : sex.entrySet()) {
			 System.out.println(entry.getKey()+" : "+entry.getValue());
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<String> getCountries() {
		return countries;
	}

	public void setCountries(List<String> countries) {
		this.countries = countries;
	}

	public Map<String, String> getSex() {
		return sex;
	}

	public void setSex(Map<String, String> sex) {
		this.sex = sex;
	}

}
